<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>Film discuss</title>
	<LINK href="<?echo base_url();?>css/style.css" type="text/css" rel=stylesheet>
	<LINK href="<? echo base_url(); ?>css/form_validator/validationEngine.jquery.css" type="text/css" rel=stylesheet>
		<script type="text/javascript" src="<?echo base_url();?>js/jquery-1.7.1.js"></script>
		<script type="text/javascript" src="<?echo base_url();?>js/jquery.validationEngine.js"></script>
		<script type="text/javascript" src="<?echo base_url();?>js/jquery.form_validator.languages/jquery.validationEngine-ru.js"></script>
</head>
<script>
	$(document).ready(function(){
		$('#loginform').validationEngine('attach');
		console.log($('#loginform'));
		$('input submit').click(function(e){
			if ($('#loginform').validationEngine('validate') == true)
			{
				console.log(123);
			}
		});
	});
</script>
<body>
	<div id="container">
		<div id="top">
			<a class="navigation" href="/">Главная </a>
			<p id="error">
			<?php
			if (isset($text)) {
				echo "Ахтунг!!!".br();
				echo $text;
			}
			?>
			</p>			
		</div>
		<div id="body">
			<form method="post" action="/main_contr/auth" id="loginform">
				<h1>Авторизация</h1>
				<table>
					<tr><td>E-mail:</td><td><input type="email" name="email" class="validate[required,custom[email]] " id="loginel1"/> <br /><br /></td></tr>
					<tr><td>Password:</td><td><input type="password" name="password" class="validate[required,minSize[4]],custom[password] " id="loginel2"/> <br /></td></tr>
					<tr><td colspan="2" align="center"><input type="submit" value="Войти" name="sub" /></td></tr>			 
				</table>
			</form>
		</div>
		<!--<p id="notice"></p>-->
		<p id="footer">Разработал Утехин Е.А. 2012</p>
	</div>

</body>
</html>